<template>
	<view>
		<u-navbar :title="title" @custom-back="to_index"></u-navbar>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'',
				url:''
			}
		},
		onLoad(p) {
			this.title = p.title;
			this.url = p.url;
			var currentWebview = this.$scope.$getAppWebview();
			setTimeout(function(){
				var web_view = currentWebview.children()[0];
				web_view.setStyle({
					top:68
				})
			},600)
		},
		methods: {
			to_index() {
				uni.switchTab({
					url:'../index/index'
				})
			}
		}
	}
</script>

<style>

</style>
